package anewp;

public class shui {
    public static void main(String[] args) {
        for (int i = 1; i <10 ; i++) {
            for (int j = 0; j <10 ; j++) {
                for (int k = 0; k <10 ; k++) {
                    int a = i;
                    int b = j;
                    int c = k;
                    if (a*a*a+b*b*b+c*c*c==a*100+b*10+c){
                        System.out.println(a*100+b*10+c);
                    }
                }
            }
        }
    }
}
